// Copyright (C) 2023 Focus Media Holding Ltd. All Rights Reserved.

package com.lb.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.lb.feign.SmsFeign;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;

/**
 * TODO
 *
 * @author libin
 * @version V1.0
 * @since 2023-07-28 10:50
 **/
@Slf4j
@RestController
@RequestMapping("/client")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class ClientController {

    private final SmsFeign smsFeign;

    @PostMapping(value = "/call")
    public void call() {

        log.info("我去调用sms");
        smsFeign.call();
    }

}